package com.glela.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import com.glela.platform.mapper.OperationLogMapper;
import com.glela.platform.model.OperationLog;
import com.glela.platform.service.OperationLogService;

@Service("operationLogService")
@Scope("singleton")
public class OperationLogServiceImpl implements OperationLogService {
	
	@Autowired
	private OperationLogMapper operationLogMapper;

	@Override
	public int saveOperationLog(OperationLog operationLog) {
		return operationLogMapper.insertSelective(operationLog);
	}

	@Override
	public int saveOperateLog(OperationLog operationLog) {
		return operationLogMapper.insert(operationLog);
	}

}
